<!--
Copyright 2011 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Author: Google TV Developer Relations
-->
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Google TV: Demo</title>
    <link rel="stylesheet" href="http://gtv-resources.googlecode.com/svn/trunk/examples/registration_sample/demo-theme.css">
    <link rel="stylesheet" href="http://gtv-resources.googlecode.com/svn/trunk/examples/registration_sample/closure-demo.css">
  </head>
  <body>
    
  <div id="header">
    <div class="center">
      <img alt="Google TV Logo" src="spotlightgallery-logo.png">
      <h2>Google TV Closure Lib Demo</h2>
    </div>

  </div>

  <ul id="colorstrip">
    <li class="col1"></li>
    <li class="col2"></li>
    <li class="col3"></li>
    <li class="col4"></li>
  </ul>

  <div id="main" class="tv-container-vertical center">

  <form action="signup.php" method="post" id="form-sign-up" name="signUp">
  <div class="tv-container-vertical button-inputs">
						
    <h2>Sign up</h2>

    <div class="tv-input first-focus">
       <div class="tv-input-hint">Name</div>
       <input type="text" name="ContactName" id="ContactName">
    </div>
    <br>
    <div class="tv-input">
       <div class="tv-input-hint">Email Address</div>
       <input type="text" name="email" id="email" />
    </div>
    <br>
    <div class="tv-input">
       <div class="tv-input-hint">Username</div>
       <input type="text" name="username" id="username" />
    </div>
    <br>
    <div class="tv-input">
       <div class="tv-input-hint">Password</div>
       <input type="password" name="password" id="password" />
    </div>
    <br>
    <div class="tv-input">
       <div class="tv-input-hint">Company</div>
       <input type="text" name="Company" id="Company" />
    </div>
    <br>

    <p>Select your favorite colors</p>
    <div class="tv-container-horizontal">
      <div class="tv-toggle-button"> 
        <div class="checkbox-icon"></div> 
        <span class="checkbox-text">RED</span> 
      </div> 

      <div class="tv-toggle-button"> 
        <div class="checkbox-icon"></div> 
        <span class="checkbox-text">GREEN</span> 
      </div> 

      <div class="tv-toggle-button"> 
        <div class="checkbox-icon"></div> 
        <span class="checkbox-text">BLUE</span> 
      </div> 
    </div> 
    <br>
    <br>
    <br>
    
    <div class="tv-container-horizontal button-small">
      <div class="tv-button">Submit</div>
      <div class="tv-button">Reset</div>
    </div>
  </div>

  </form>
</div>

    
  </body>


<script src="tv-ui-compiled.js" type="text/javascript"></script>


<script type="text/javascript">
// Execute the decorator
try {
  tv.ui.decorate(goog.dom.getElement('main'));
} catch (e) {
//  alert('hh' + e.message);
}

// Set focus on initial element
var focusElement = goog.dom.getElementByClass('first-focus');
var focusComponent = tv.ui.getComponentByElement(focusElement);
focusComponent.tryFocus();

</script>


</html>
